package edu.zut.hb.software.train.Administrator.domain;



import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import edu.zut.hb.software.base.domain.BaseEntity;




@Table(name="T_Administrator")  //表名
@Entity    //实体
/*@NamedQueries({ @NamedQuery(name = "Administrator.getRoot", query = "select g from Administrator g where g.parent is null") })*/
public class Administrator extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -31279394964769200L;
	
    @Id
	@Column(name = "Id")
	Long id;
	



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "NAME")
	String name;
 
	
	String sex;
	
//	@OneToMany(mappedBy = "manager", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
	//Set<Arrangement> order;

	public String getName() {
		return name;
	}

	public String getSex() {
		return sex;
	}
//
//	public Set<Arrangement> getOrder() {
//		return order;
//	}
//
//	public void setName(String name) {
//		this.name = name;
//	}
//
//	public void setSex(String sex) {
//		this.sex = sex;
//	}
//
//	public void setOrder(Set<Arrangement> order) {
//		this.order = order;
//	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "Administrator [id=" + id + ", name=" + name + ", sex=" + sex + "]";
	}

	/**
	 * 
	 
	@GeneratedValue(strategy=GenerationType.AUTO)   //生成主键的策略
	@Id  //主键
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="LASTNAME",length=50,nullable=false)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getsex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	*/
	
	
	
}
